package com.example.lgseckill.domain;

import java.util.Date;

/**
 * Author:e
 * 商品表
 * Date:2021/8/17 10:10 上午
 **/
public class Product {

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品数量
     */
    private int number;

    /**
     * 商品详细
     */
    private String detail;

    /**
     * 单价
     */
    private Double price;

    /**
     * 创建时间
     */
    private Date createTime;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId=" + productId +
                ", name='" + name + '\'' +
                ", number=" + number +
                ", detail='" + detail + '\'' +
                ", price=" + price +
                ", createTime=" + createTime +
                '}';
    }
}
